package com.xxx.seckill.mapper;

import com.xxx.seckill.pojo.TGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.seckill.vo.GoodsVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2023-01-04
 */
public interface TGoodsMapper extends BaseMapper<TGoods> {

    /**
     * 根据商品id跳转商品详情页面
     * @param goodsId
     * @return
     */
    GoodsVo findGoodsVoByGoodsId(Long goodsId);

    /**
     * 获取商品列表
     * @return
     */
    List<GoodsVo> findGoodsVo();

    
}
